package com.jinmdz.fmis.api.api.model.cremation;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 火化炉时间段请求数据
 *
 * @author LiCongLu
 * @date 2020-03-08 15:20
 */
@ApiModel(value = "火化炉时间段请求数据", description = "火化炉时间段请求数据")
public class AppointmentTimeSegmentData extends BaseBean {
    /**
     * 火化炉类型编码
     */
    @AnValidate(name = "火化炉类型编码", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "火化炉类型编码", name = "furnaceTypeCode", position = 1)
    private Integer furnaceTypeCode;

    /**
     * 预约日期
     */
    @AnValidate(name = "预约日期", required = true)
    @ApiModelProperty(value = "预约日期", name = "appointmentDate", example = "2020-02-07", position = 2)
    @JsonFormat(pattern = yyyy_MM_dd)
    private Date appointmentDate;

    public Integer getFurnaceTypeCode() {
        return furnaceTypeCode;
    }

    public AppointmentTimeSegmentData setFurnaceTypeCode(Integer furnaceTypeCode) {
        this.furnaceTypeCode = furnaceTypeCode;
        return this;
    }

    public Date getAppointmentDate() {
        return appointmentDate;
    }

    public AppointmentTimeSegmentData setAppointmentDate(Date appointmentDate) {
        this.appointmentDate = appointmentDate;
        return this;
    }
}
